﻿using System;
using Report.Entity;
using Report.IRepository;
using System.Linq.Expressions;

namespace Report.Repository
{
    public class BarCodeDAL : BaseDAL<在制流转条码>, IBase<在制流转条码>
    {
        public 在制流转条码 SearchByBarCode(string barcode)
        {
            Expression<Func<在制流转条码, bool>> where = (p => p.条码 == barcode && p.标签类别 == "合格" && p.状态 == "NA");
            在制流转条码 entity = GetByWhere(where);
            return entity;
        }
    }
}
